package com.cjx.springcloud.service;

import org.springframework.stereotype.Component;

/**
 * @author cjx
 * @date 2021/6/10 0010 - 22:49
 */
//作为服务降级统一处理类
@Component
public class PaymentFallBackService implements PaymentHystrixService{
    @Override
    public String paymentinfo_ok(Integer id) {
        return "-----PaymentFallBackService ok 0.0";
    }

    @Override
    public String paymentinfo_timeout(Integer id) {
        return "-----PaymentFallBackService timeout 0.0";
    }
}
